Optimal. Leaf size=182 \[ -\frac{a^3 x (a+b x)}{b^4 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{a^2 x^2 (a+b x)}{2 b^3 \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{a x^3 (a+b x)}{3 b^2 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{x^4 (a+b x)}{4 b \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{a^4 (a+b x) \log (a+b x)}{b^5 \sqrt{a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0616439, antiderivative size = 182, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {646, 43} \[ -\frac{a^3 x (a+b x)}{b^4 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{a^2 x^2 (a+b x)}{2 b^3 \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{a x^3 (a+b x)}{3 b^2 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{x^4 (a+b x)}{4 b \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{a^4 (a+b x) \log (a+b x)}{b^5 \sqrt{a^2+2 a b x+b^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 646
Rule 43
Rubi steps
\begin{align*} \int \frac{x^4}{\sqrt{a^2+2 a b x+b^2 x^2}} \, dx &=\frac{\left (a b+b^2 x\right ) \int \frac{x^4}{a b+b^2 x} \, dx}{\sqrt{a^2+2 a b x+b^2 x^2}}\\ &=\frac{\left (a b+b^2 x\right ) \int \left (-\frac{a^3}{b^5}+\frac{a^2 x}{b^4}-\frac{a x^2}{b^3}+\frac{x^3}{b^2}+\frac{a^4}{b^5 (a+b x)}\right ) \, dx}{\sqrt{a^2+2 a b x+b^2 x^2}}\\ &=-\frac{a^3 x (a+b x)}{b^4 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{a^2 x^2 (a+b x)}{2 b^3 \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{a x^3 (a+b x)}{3 b^2 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{x^4 (a+b x)}{4 b \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{a^4 (a+b x) \log (a+b x)}{b^5 \sqrt{a^2+2 a b x+b^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.0252535, size = 68, normalized size = 0.37 \[ \frac{(a+b x) \left (b x \left (6 a^2 b x-12 a^3-4 a b^2 x^2+3 b^3 x^3\right )+12 a^4 \log (a+b x)\right )}{12 b^5 \sqrt{(a+b x)^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.246, size = 67, normalized size = 0.4 \begin{align*}{\frac{ \left ( bx+a \right ) \left ( 3\,{b}^{4}{x}^{4}-4\,a{b}^{3}{x}^{3}+6\,{x}^{2}{a}^{2}{b}^{2}+12\,{a}^{4}\ln \left ( bx+a \right ) -12\,x{a}^{3}b \right ) }{12\,{b}^{5}}{\frac{1}{\sqrt{ \left ( bx+a \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.25644, size = 201, normalized size = 1.1 \begin{align*} \frac{13 \, a^{4} \log \left (x + \frac{a}{b}\right )}{6 \,{\left (b^{2}\right )}^{\frac{5}{2}}} - \frac{13 \, a^{3} x}{6 \,{\left (b^{2}\right )}^{\frac{3}{2}} b} + \frac{13 \, a^{2} x^{2}}{12 \, \sqrt{b^{2}} b^{2}} + \frac{\sqrt{b^{2} x^{2} + 2 \, a b x + a^{2}} x^{3}}{4 \, b^{2}} - \frac{7 \, a^{4} \sqrt{\frac{1}{b^{2}}} \log \left (x + \frac{a}{b}\right )}{6 \, b^{4}} - \frac{7 \, \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2}} a x^{2}}{12 \, b^{3}} + \frac{7 \, \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2}} a^{3}}{6 \, b^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.72371, size = 117, normalized size = 0.64 \begin{align*} \frac{3 \, b^{4} x^{4} - 4 \, a b^{3} x^{3} + 6 \, a^{2} b^{2} x^{2} - 12 \, a^{3} b x + 12 \, a^{4} \log \left (b x + a\right )}{12 \, b^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.06767, size = 49, normalized size = 0.27 \begin{align*} \frac{a^{4} \log{\left (a + b x \right )}}{b^{5}} - \frac{a^{3} x}{b^{4}} + \frac{a^{2} x^{2}}{2 b^{3}} - \frac{a x^{3}}{3 b^{2}} + \frac{x^{4}}{4 b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.35437, size = 112, normalized size = 0.62 \begin{align*} \frac{a^{4} \log \left ({\left | b x + a \right |}\right ) \mathrm{sgn}\left (b x + a\right )}{b^{5}} + \frac{3 \, b^{3} x^{4} \mathrm{sgn}\left (b x + a\right ) - 4 \, a b^{2} x^{3} \mathrm{sgn}\left (b x + a\right ) + 6 \, a^{2} b x^{2} \mathrm{sgn}\left (b x + a\right ) - 12 \, a^{3} x \mathrm{sgn}\left (b x + a\right )}{12 \, b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]